
import 'zolon_printer_platform_interface.dart';

class ZolonPrinter {
  Future<String?> getPlatformVersion() {
    return ZolonPrinterPlatform.instance.getPlatformVersion();
  }

  Future<void> configM9200Printer(int printMode, int labelPaperWidth, int labelPaperHeight) async {
    await ZolonPrinterPlatform.instance.configM9200Printer(printMode, labelPaperWidth, labelPaperHeight);
  }

  Future<void> m9200PrintLabel(String labelText, int paperWidth, int paperHeight) async {
    await ZolonPrinterPlatform.instance.m9200PrintLabel(labelText, paperWidth, paperHeight);
  }

  Future<void> m9200PrintTicket({
    required String orderJSON,
    required String shopJSON,
    required String printerJSON,
    required String ticketType,
    bool isDebugMode = false
  }) async {
    await ZolonPrinterPlatform.instance.m9200PrintTicket(
      orderJSON: orderJSON,
      shopJSON: shopJSON,
      printerJSON:
      printerJSON,
      ticketType: ticketType,
      isDebugMode: isDebugMode
    );
  }
}
